﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ManageRolePermission.aspx.cs" Inherits="WXYW.ManageRolePermission" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    管理角色权限
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">

    <script type="text/javascript">
        $(document).ready(function() {

            $(".accordion2 h3").eq(0).addClass("active");
            $(".tableList").eq(0).show();

            $(".accordion2 h3").click(function() {
                $(this).next(".tableList").slideToggle("slow")
		.siblings(".tableList:visible").slideUp("slow");
                $(this).toggleClass("active");
                $(this).siblings("h3").removeClass("active");
            });

        });
    </script>

    <style type="text/css">
        body
        {
            margin: 10px auto;
        }
        .accordion2
        {
            width: 100%;
            border-bottom: solid 1px #c4c4c4;
        }
        .accordion2 h3
        {
            background: #e9e7e7 url(image/arrow-square.gif) no-repeat right -51px;
            padding: 7px 5px;
            font: bold 9pt 宋体;
            margin: 0;
            border: solid 1px #c4c4c4;
            border-bottom: none;
            cursor: pointer;
        }
        .accordion2 h3:hover
        {
            background-color: #e3e2e2;
        }
        .accordion2 h3.active
        {
            background-position: right 5px;
        }
        .accordion2 p
        {
            background: #f7f7f7;
            margin: 0;
            padding: 10px 15px 20px;
            border-left: solid 1px #c4c4c4;
            border-right: solid 1px #c4c4c4;
            display: none;
        }
    </style>
    <div align="right" style="width: 100%; margin-bottom: 10px; margin-right: 20px">
        <img src="image/operateicon/back_back.gif" alt="" />
        <asp:HyperLink ID="returnHyperLink" runat="server" NavigateUrl="~/ManageRole.aspx">返回</asp:HyperLink>
        <img src="image/check.gif" alt="" />
        <asp:LinkButton ID="saveLnk" runat="server" onclick="saveLnk_Click">保存</asp:LinkButton>
    </div>
    <table width="100%" style="line-height: 30px">
        <tr align="center">
            <td>
                <b><asp:Label ID="RoleNameLbl" runat="server"></asp:Label></b>
            </td>
        </tr>
    </table>
    <div class="accordion2">
        <h3>
            流程管理</h3>
        <div class="tableList" style="display:none">
            <asp:GridView ID="LCGLGridView" runat="server" AutoGenerateColumns="False" Width="70%"
                OnRowDataBound="LCGLGridView_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            <asp:HiddenField ID="MenuID" Value='<%#Bind("MenuID")%>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="功能">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("MenuName")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="查看权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ViewCheckBox" runat="server" Checked='<%#Bind("View")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="OPCheckBox" runat="server" Checked='<%#Bind("Operate")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <h3>
            升级管理</h3>
        <div class="tableList" style="display:none">
            <asp:GridView ID="SJGridView" runat="server" AutoGenerateColumns="false" Width="70%"
            OnRowDataBound="LCGLGridView_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            <asp:HiddenField ID="MenuID" Value='<%#Bind("MenuID")%>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="功能">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("MenuName")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="查看权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ViewCheckBox" runat="server" Checked='<%#Bind("View")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="OPCheckBox" runat="server" Checked='<%#Bind("Operate")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <h3>
            备件先行管理</h3>
        <div class="tableList" style="display:none">
            <asp:GridView ID="BJXXGridView" runat="server" AutoGenerateColumns="false" Width="70%"
            OnRowDataBound="LCGLGridView_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            <asp:HiddenField ID="MenuID" Value='<%#Bind("MenuID")%>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="功能">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("MenuName")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="查看权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ViewCheckBox" runat="server" Checked='<%#Bind("View")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="OPCheckBox" runat="server" Checked='<%#Bind("Operate")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <h3>
            备件申请管理</h3>
        <div class="tableList" style="display:none">
            <asp:GridView ID="BJGridView" runat="server" AutoGenerateColumns="false" Width="70%"
            OnRowDataBound="LCGLGridView_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            <asp:HiddenField ID="MenuID" Value='<%#Bind("MenuID")%>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="功能">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("MenuName")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="查看权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ViewCheckBox" runat="server" Checked='<%#Bind("View")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="OPCheckBox" runat="server" Checked='<%#Bind("Operate")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <h3>
            返厂申请管理</h3>
        <div class="tableList" style="display:none">
            <asp:GridView ID="FCGridView" runat="server" AutoGenerateColumns="false" Width="70%"
            OnRowDataBound="LCGLGridView_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            <asp:HiddenField ID="MenuID" Value='<%#Bind("MenuID")%>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="功能">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("MenuName")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="查看权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ViewCheckBox" runat="server" Checked='<%#Bind("View")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="OPCheckBox" runat="server" Checked='<%#Bind("Operate")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <h3>
            后台数据维护</h3>
        <div class="tableList" style="display:none">
            <asp:GridView ID="SJWHGridView" runat="server" AutoGenerateColumns="false" Width="70%"
            OnRowDataBound="LCGLGridView_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            <asp:HiddenField ID="MenuID" Value='<%#Bind("MenuID")%>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="功能">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("MenuName")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="查看权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ViewCheckBox" runat="server" Checked='<%#Bind("View")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="OPCheckBox" runat="server" Checked='<%#Bind("Operate")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <h3>
            统计信息</h3>
        <div class="tableList" style="display:none">
            <asp:GridView ID="TJGridView" runat="server" AutoGenerateColumns="false" Width="70%"
            OnRowDataBound="LCGLGridView_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            <asp:HiddenField ID="MenuID" Value='<%#Bind("MenuID")%>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="功能">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("MenuName")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="查看权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ViewCheckBox" runat="server" Checked='<%#Bind("View")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="OPCheckBox" runat="server" Checked='<%#Bind("Operate")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <h3>
            基础信息</h3>
        <div class="tableList" style="display:none">
            <asp:GridView ID="JCGridView" runat="server" AutoGenerateColumns="false" Width="70%"
            OnRowDataBound="LCGLGridView_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            <asp:HiddenField ID="MenuID" Value='<%#Bind("MenuID")%>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="功能">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("MenuName")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="查看权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ViewCheckBox" runat="server" Checked='<%#Bind("View")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="OPCheckBox" runat="server" Checked='<%#Bind("Operate")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
         <h3>
            导出信息</h3>
        <div class="tableList" style="display:none">
            <asp:GridView ID="EPXXGridView" runat="server" AutoGenerateColumns="false" Width="70%"
            OnRowDataBound="EPXXGridView_RowDataBound" >
                <Columns>
                    <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            <asp:HiddenField ID="MenuID" Value='<%#Bind("MenuID")%>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="功能">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("MenuName")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="查看权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ViewCheckBox" runat="server" Checked='<%#Bind("View")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="OPCheckBox" runat="server" Checked='<%#Bind("Operate")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <h3>
            签字流程管理</h3>
        <div class="tableList" style="display:none">
            <asp:GridView ID="QZLCGridView" runat="server" AutoGenerateColumns="false" Width="70%"
            OnRowDataBound="LCGLGridView_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            <asp:HiddenField ID="MenuID" Value='<%#Bind("MenuID")%>' runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="功能">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("MenuName")%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="查看权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ViewCheckBox" runat="server" Checked='<%#Bind("View")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作权限">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="OPCheckBox" runat="server" Checked='<%#Bind("Operate")%>'></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
    </div>
</asp:Content>
